home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh
-
- set -e
-
- # Get LIVE_USERNAME, whose instance we want to restart
- . /etc/live/config.d/username.conf
-
- if killall vidalia 2> /dev/null; then
- sleep 2 # give lckdo a chance to release the lockfile
- fi
- export DISPLAY=':0.0'
- export XAUTHORITY="`echo /var/run/gdm3/auth-for-${LIVE_USERNAME}-*/database`"
- exec /bin/su -c /usr/local/bin/vidalia-wrapper "${LIVE_USERNAME}" &
-